<?php
namespace app\msgapi\validate;

use think\Validate;

class AuthGroup extends Validate
{
    protected $rule = [
        'title|用户名'   => 'require|unique:auth_group',// title字段的值是否在auth_group表（不包含前缀）中唯一
        'state|状态'    =>'in:0,1'
    ];
}